/**
 * FriendData.java
 * Copyright2011 PinMeal
 */
package com.pinmeal.types;

/**
 * @author albertma 
 * Jul 13, 2011
 */
public class FriendData implements PinMealType
{
    String name;
    String email;
    String group;
    public void setName(String name)
    {
        this.name = name;
    }
    
    public String getName()
    {
        return this.name;
    }
    
    public void setEmail(String email)
    {
        this.email = email;
    }
    
    public String getEmail()
    {
        return this.email;
    }
    
    public void setGroup(String group)
    {
        this.group = group;
    }
    
    public String getGroup()
    {
        return this.group;
    }
    
    public boolean equals(Object friendData)
    {
    	if(this == friendData)
    		return true;
    	
    	if(!(friendData instanceof FriendData))
    		return false;
    	
        if (((FriendData) friendData).getName().equals(this.name)
                && ((FriendData) friendData).getEmail().equals(this.email)
                && ((FriendData) friendData).getGroup().equals(this.group))
        {
            return true;
        }
    	return false;
    }
}
